// activities

#include "types.h"

void HelpActivity( void )
{
   printf("\nSurvive as many days as possible.  You can perform three actions per day (split\n");
   printf("into three segments (dawn, dusk, night).  Actions are scavange (the local area\n");
   printf("for food and materials), fortify (the local area against attack), sleep regain rest),\n");
   printf("and move (to a new location).\n\n");
   printf("You can also look (to identify the current area), and use stats (to identify the\n");
   printf("state of the group).\n\n");

   return;
}


void MoveActivity( void )
{


}


void ScavangeActivity( void )
{


}


void FortifyActivity( void )
{

}


void SleepActivity( void )
{
   float multiplier;
   float test;

   // Create a multiplier based upon the time of day
   switch( GetTime( ) )
   {
      case DUSK:
         multiplier = 0.5;
         break;
      case DAWN:
         multiplier = 0.75;
         break;
      case NIGHT:
         multiplier = 0.99;
         break;
   }

printf( "multiplier = %f\n", multiplier );

//   multiplier *= ( 100.0 - (float)getRand( GetFortification( ) ) ) / 100.0;
   test = ( (float)getRand( GetFortification( ) ) / 100.0 );

   multiplier *= test;

printf( "test = %f\n", test );
printf( "multiplier = %f\n", multiplier );

//   PlayersSleep( multiplier );

   return;
}

